package org.ccay.core.server;

import org.ccay.core.dispatcher.IEventHandler;
import org.ccay.core.dispatcher.IOrder;
import org.ccay.core.exception.ApplicationException;

/**
 * 应用关闭前事件	
 * 
 * @since 2012-3-28
 */
public interface IBeforeShutdownHandler extends IEventHandler<ShutdownEventArgs>, IOrder {
	/* (non-Javadoc)
	 * @see org.ccay.core.dispatcher.IEventHandler#execute(java.lang.Object, org.ccay.core.dispatcher.IEventArgs)
	 */
	void execute(Object sender, ShutdownEventArgs args) throws ApplicationException;
}
